<?php

namespace app\api\model;

use think\Model;

class RealtimeRaceModel extends Model
{
    protected $name = 'realtime_race';
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $hidden=['type_id'];
    //关联赛事类型表
    public function raceType()
    {
        return $this->belongsTo('RaceType', 'type_id', 'id')->field('id,name');
    }
}